<?php
	header("content-type: text/xml");
	require_once '../includes/Config.inc.php';
	
	$cfg = Config::getInstance('..');
	$facebook = $cfg->getFacebook();
	$myUid = $facebook->require_login();
	$user = User::getUserFbID($myUid);
	
	$url = 'http://location.beta.orange-api.net/location/createAuthorization.xml?id='.$cfg->or_api_key.'&number='.$user->phone
	file_get_contents($url);
?>
